package SingletonPattern.singletonB;


public class test {
    public static void main(String[] args) {
        SingletonPattern.singletonB.singleton instance1 = SingletonPattern.singletonB.singleton.getInstance();//获取实例对象
        SingletonPattern.singletonB.singleton instance2 = singleton.getInstance();//获取实例对象
        System.out.println(instance1 == instance2);//true,表明两个实例对象化相等
    }
}
